test cases for matching names