make autoedit more testable