tests: ensure cleanup paths are hit.