Fix tag duplication in for_resume.
Add some tests, still failing.
Pass the nested test.