allow exception while init test case
refactor connection manager