Fix warnings in rspec