changed domain property to clientDomain
fixed tests
updated tests
Merge pull request #98 from jembi/fix-core-issue-58-domain-property

Fix core issue 58 domain property