fixing rspec tests