testcases/lib: Add test.sh test library + docs.

* Add test.sh test library

* Add documentation into test-writing-guidelines

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