completion-test: Fix leaks in tests