Update document.h

remove erroneous testing code