Fix dependecies for unitests
Add config param for using localtime/UTC in log