patch from till to jittests
Fix bug in test for bug 853573, which should not define range() inside
an if statement
wip