add new testcase, improve loggin