Add tests for tag parser