created rspec utilities to more easily write tests