Test errorName, errorMessage, and errorStack. Fix a few related bugs.
v1.3.1