Moved tests to test/slow.
Test for EOF only if the flag was not already set.