Fixed in_testplan() issue in models.py