More tests for Document#to_admin_form with refactoring