creating log directory on startup, fixing unit test which was creating global mutations