fix Cakefile for travis

If failed test, then exit with exit code.