doc: test-writing-guidelinex.txt Update

* Add note about SAFE_MACROS in cleanup()

* Add usefull macros paragraph

* Fix a few typos, etc.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>