test: add a testcase for dynamic logs