Fixed rubocop warnings in spec folder