Rewrite the container manager test cases.