Add more tests for tag matching.