add tests for connectionDetached events from removeAllEndpoints and remove methods.  related to issue #283.