testing the callback on 'on'