Test doc generation