corrected rubocop offences in rspec test files