Fix unit tests not cleaning up after themselves.