added some rspec tests