ui_dump_test: fix comparison between expected & actual results

Due to some debug code, it never checked anything.
8 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed ERP5.CodingStyleTest-Master

01:22:57

failed ERP5.PerformanceTest-Master

00:29:02

failed ERP5.UnitTest-Master

02:38:32

failed ERP5.UnitTest-Zope2

02:24:43

passed SlapOS.Eggs.UnitTest-Master.Python2

00:19:04

passed SlapOS.Eggs.UnitTest-Master.Python3

00:50:22

passed Wendelin.UnitTest-Master

00:22:04

failed Wendelin.UnitTest-Master

00:53:35