Added tests for Api calls