Fix invalid replay UnitTest