Fixed how the tests are selected.