Fix async tests of iprecord-factory