Use std::unordered_set
Sort nixPath attributes
Fix test