fix tests running phreak
(cherry picked from commit 8b90cd35ef49cc260e4b8b8314ea85460ae32082)