bugfix : avoid _events to be serialized
implement a mock option on connection to pass tests
using the mock interface
using the wait option
implement wait on remove function