Unit test manager

Some unit test for the manager package. I also added several mock structs and helper functions for test purpose.
Oh, I just noticed that we've checked the subcontainers in ``TestContainerGetInfo()`` through its public method ``GetInfo()``.