[PATCH 3/4] regression-tests: Replace deprecated methods in phase2 baremetal tests