tests: stub Logger, stub Dir.mkdir