[#1838] Use assert_equal to facilitate test debugging