mocking with rspec fix