clean log between test, dump log on failure