Fix extending domainer and update tests.

Close #1424.
Merge pull request #1425 from palantir/fix_domainer

Fix extending domainer and update tests.