test new method and codeAt