Refactored the public client part of the DocumentTest to run faster as well. We're making progress here.