Fix the tests which broken when logsdir -> log