fixed rspec tests