test parse_char