Adds helper for rspec tests