Move tests of .charAt() to a separate file