Support wildcard matching

Adding tests to verify wildcard matching