tests: check global leaks