More unit tests for Error and made Error object immutable