use better library for comparing XML. Gives better error message for failing test. Refs #828
order the list of departments so it always matches always.