Properly clean up container node.
Previously, the test would create a new container node,
losing the reference to the old one, so it never got destroyed.