add test case for matchPos