fixes a bug where more than one matching test caused no test to be found instead of the first found test to run