Fix global leaks detection for node tests