adding test cases for some api