add ut code for simple log. and do some design