Add tests for creating tag with API.