rspec test fixes