Make test compat with phantom