Test and document Doc class