rewriting tests after ctype/sm_ctype comparision and reading php manual more creafully.