test/log: fix dynamic log levels testing