Added on/off events test