added working rspec tests