Enhancing tests.

Abstract all the similar connection tests for clients.
Add RPC communication tests for gevent version.
Merge pull request #4 from AxelVoitier/master

Enhancing tests.