Fix test mocks