Update testing Gems in nginx and fix a rubocop warnings