The if block above should update the result var.
A failed test reports as success
Number of failed/succeded tests is incorrectly counted