added more api calls and more test for the api calls