Add tests for types with custom Error interface.