improved the rspec tests