fixing API mocks