refactor the rspec tests