Fixed test for log-hook on Linux