support "misc40.py" test case on branch