Fixes-#10  Write tests for log method #10