Test onError callbacks