 				return
 
 			it "check if the key still exists", () ->
-				localCache.get state.key3, (err, res) ->
-					should.not.exist err
-					state.val.should.eql res
-					return
+				res = localCache.get state.key3
+				state.val.should.eql res
 				return
 
 			it "wait until ttl has ended and check if the key was deleted", (done) ->


			it "set", () ->
				for key in state.keys
					localCache.set key, state.val, (err, res) ->
						should.not.exist err
						true.should.eql res
						return
				return

			it "get", () ->
				localCache.get state.keys[0], (err, res) ->
					should.not.exist err
					state.val.should.eql res
					return
				return

			it "mget", () ->
				localCache.mget state.keys[0..1], (err, res) ->
					should.not.exist err
					# generate prediction
					prediction = {}
					prediction[state.keys[0]] = state.val
					prediction[state.keys[1]] = state.val
					prediction.should.eql res
					return
				return

			it "del single", () ->
				localCache.del state.keys[0], (err, count) ->
					should.not.exist err
					1.should.eql count
					return
				return

			it "del multi", () ->
				localCache.del state.keys[1..2], (err, count) ->
					should.not.exist err
					2.should.eql count
					return
				return

			it "ttl", (done) ->

	checkperiod: 0
})

localCacheMaxKeys = new nodeCache({
	maxKeys: 2
})

localCacheTTL = new nodeCache({
	stdTTL: 0.3,
