Fixes #9  Write tests for matchname method #9