Add api tests
Merge pull request #31 from edmoz/tests-api

Add API tests