Add events to custom controls and test