move filtering logic to test locator so it can be used with qunit:serve also