test doc generation