Use assert_dom_equal

ditto #202 for `2.x`.