improved filepipe's tests

Verified that the new tests detect the improper eof bug.