write bonus rspec tests