fixed broken unit test after changes in EOF handling