Add test for log