test spies, for rspec