Apply gevent monkey-patching before running tests.

Fixes test failure.