count test failures/successes correctly