Improve test coverage for TagController