small improvement to mocha tests