 						else
 							done()
 
-		describe "*findClientByDomain(domain)", ->
+		describe "*findClientByDomain(clientDomain)", ->
 			clientTest =
 				clientID: "Zambia_OpenHIE_Instance"
-				domain: "www.zedmusic-unique.co.zw"
+				clientDomain: "www.zedmusic-unique.co.zw"
 				name: "OpenHIE NodeJs"
 				roles: [
 						"test_role_PoC"

						else
							Client.findOne { clientID: "YUIAIIIICIIAIA" }, (err, client) ->
								client.clientID.should.equal "YUIAIIIICIIAIA"
								client.domain.should.equal "him.jembi.org"
								client.name.should.equal "OpenMRS Ishmael instance"
								client.roles[0].should.equal "OpenMRS_PoC"
								client.roles[1].should.equal "PoC"

							done err
						else
							res.body.clientID.should.equal "testClient"
							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"
