fixed some rspec tests