test for add_wch and get_wch