tests: fix test-cutils leaks