test: fix count 'key' leak