added a few more tests for Api