fixed rspec mocks deprecation warnings