added rspec tests, passing