Generate .cmt for the test executables

Signed-off-by: John Else <john.else@citrix.com>
Fix tests so that they exit 1 on failure/error

Signed-off-by: John Else <john.else@citrix.com>