exposed wildcard matching, added tests for it.