Reemiting main connection event to sparks and adding reconnection tests