tests: check for global leaks