ClientConnectorTests: replaced 'sleep()' calls with 'dolphin.sync()' calls to make tests more reliable