use double instead of stub since the later has been deprecated in rspec