Add test for no warning when log_level is set