Similar, but we have the agent write the test cases after writing the plan and then iterate until it passes the test cases.