Adding some tests to the api calls