Fixing tests for gevent support