better logs, fix testcase1's bug