lib: read after eof continue returns eof; test: add corresponding test