Fix find_test_class to avoid matching dummy classes.