printing tests in document format