fix errors in rspec