finish test and modify log file