add a test for the new anchor based error recovery