 
 		hm.getStates(ccu, false)
 		.then (result) ->
-			result.should.deep.equal parsedstates
+			result.forEach (obj,idx) ->
+				obj.should.containSubset parsedstates[idx]
 			cb()
 		.catch (err) ->
 			cb err

						progid =  url.parse(req.url,true).query['program_id']
						lastprog = progid
						resp.end()
					else
						throw new Error("unkown script: #{tok[3]}")
			else
				#return first token as status
				status = parseInt tok[1]

		.then (result) ->
			#result.should.deep.equal parsedprogs
			result.forEach (obj,idx) ->
				obj.should.containSubset parsedprogs[idx]
			cb()
		.catch (err) ->
			cb err
