build: check leaks in tests