test eof in scanner