correctly use log file during tests. use different logger for each module.