Mocking rspec and tests