Mock the rest of API interaction for test