Add test printer for serialized docs.