Implemented unit test for request api