test: fix global leakage