some sloppy mocha tests for corrupt task handling