Test driver (and much-needed fixes) to fgets().