test unblocking io with select