Fix rubocop offenses for test/ directory