tests: plug a couple of leaks