 							done err
 						else
 							res.body.clientID.should.equal "testClient"
-							res.body.domain.should.equal "www.zedmusic-unique.co.zw"
+							res.body.clientDomain.should.equal "www.zedmusic-unique.co.zw"
 							res.body.name.should.equal "OpenHIE NodeJs"
 							res.body.roles[0].should.equal "test_role_PoC"
 							res.body.roles[1].should.equal "monitoring"

				passwordHash: "$2a$10$w8GyqInkl72LMIQNpMM/fenF6VsVukyya.c6fh/GRtrKq05C2.Zgy"
				cert: ""

			it "should return client with specified domain", (done) ->
				client = new Client clientTest
				client.save (error, newApp) ->
					should.not.exist (error)


		testAppDoc =
			clientID: "YUIAIIIICIIAIA"
			clientDomain: "him.jembi.org"
			name: "OpenMRS Ishmael instance"
			roles: [
					"OpenMRS_PoC"
