add helper methods for rspec