Fixes #9  Write tests for matchname method #9
 Fixes-#10 Write tests for log method #10