Fix tag unit test