test/event-loop: Check readable state on a pipe