Add unit test for log level change in logger