test: prevent global leak problems