Add test cases for logutil