changed domain property to clientDomain
fixes issue #58
updated tests
fixed indentation on tests
Merge pull request #134 from jembi/fix-issue-58-domain-property

Fix issue 58 domain property