changed isDomainError method name by isCustomError
changed isDomainError by isCustomError
more tests added.