add error test for NUM and some characters which cannot be recognized