Added some rspec helper functionality