api: improve test.
api: improve test.

Related to #1372.

gwmoura/tsuru,tsuru/tsuru,guilhermebr/tsuru,gwmoura/tsuru,ArxdSilva/tsuru,gwmoura/tsuru,guilhermebr/tsuru,tsuru/tsuru,ggarnier/tsuru,cezarsa/tsuru,tsuru/tsuru,ggarnier/tsuru,ArxdSilva/tsuru,cezarsa/tsuru,ArxdSilva/tsuru,cezarsa/tsuru,guilhermebr/tsuru,tsuru/tsuru,ArxdSilva/tsuru,guilhermebr/tsuru,ggarnier/tsuru,ggarnier/tsuru,cezarsa/tsuru