add unit test for set log level