write rspec tests