tests: check leaks in tests