Restore test for rewriting rewritten parent