helper functionality for rspec