tests: Add test of the wildcard function.