EAGAIN and EINTR map to Unix.Unix_error

Update init code in tests to use `Context` functions.