Fix segfault in Request.{wait|test}all()
Improve tests for Request.{wait|test}all()