Better testing for wildcard search