Configuring logs to rotate.
Fixing unit tests.