fix tests on testcase infrastructure