Add a testcase to check the behavior of fgets on eol.