test: move common functions into test lib

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Correct project name

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Explain all commands in on-line help
Switch tabs to spaces

Tabs do not provide easy alignment in this case, as we are prepending
comment characters.
Fix comment character display
Fix format of example command