Test for getchar