Mocha tests for console logging