Fixing phreak test errors