only try to determine indices for lines actually matching '(test_.) PASSED'

this way the test doesn't have to rely on slicing the output, which seems to sometime have an extra line depending on the versions used to run the tests