fixed broken test

log file is not kept open anymore