make tests cope with after invoke_job hook that destroys the lw tx