onError Event test sample