fixed the rspec tests