Fixed the TestContainerException for Karaf testing

Change-Id: Iae0b59448a89f38786486755dc360f05a5d51de0
Signed-off-by: george zhao <george.y.zhao@huawei.com>