Add global leak checking to mocha tests