[PLAT-5271] Use TestLifecycle hook