Clean nodes tests using rspec-mocks