tests: add global leak checking