make test assert helpers private
remove lint warning
rename NewDocumentFromDocument to CloneDocument