Adding nock unit test and getAccessToken method to api