Add .on('error')
test for reverted contract methods
#6194
Merged
.on('error')
test for reverted contract methods
#6194