Change onError tests to test console.log not called
#5306
Merged
onError tests to test console.log not called
#5306