fix test case
check char set constraints