fixed ticket 2635
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?
Merge pull request #261 from igal-getrailo/jira-2635b

fixed ticket 2635