helper for rspec