unit test for NewContainerApi()