Move test event callback to the correct place