Fixed codeship mocks to let tests run properly