Add tests to ensure that the `name` of each error instance is `'InvalidCharacterError'`