test calling the connected handler