add test case for NAME_PATTERN