Added UT.

Also, fetch did not propagate EOF exception.