added non failing methods for EOF handling, improved unit tests