test mode

add conf test cases
main package test case
extract log info and test cases