Nokogiri should be locked outside the :test block