[PATCH v4 2/3] regression-tests: minor refactorization in phase3 tests