minor bug fix intest.py