changed and added many tests; changed '/' into os.path.join in the cli code; moved the cli except hook to only be used when the cli is called directly; enabled test run on travis