tests: add tests for with_log