testcase has issues with assertEquals(), but works properly with new patch

and goes into infinite loop without patch.  error in assert could be in test suite?