DOC: add guidelines for using test generators in HACKING

[ci skip]
Merge pull request #3966 from pv/doc-testgen

DOC: add guidelines for using test generators in HACKING