generator test for char