written rspec tests