fix unit test execution problem on older python