add tests for log custom and immediate