Added unit tests and increased code coverage of Container test.