added broken test for GetNchars; which currently returns n+1 chars
fixed GetNchars return length; '<' instead of '<='