Fixed errors in rspec