Added Several Headless tests and new headless_test directory

Fix #21
Fix #22
Fix #23
Fix #24
@ldavidson 
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>