testing with stubs and other rspec goodness