improved tests for wildcard matching