Mocha was detecting a global leak

Fixed this by adding the 'var' keyword to the 'child' variable.  Please have a look, thanks!