 	
 	public class DependenciesTest
 	{
+
+        private var dep:Dependencies;
+
+        public function get asyncHandler():Function{
+            var handleComplete:Function = function(e:Event, x:*):void{
+                trace("done");
+            };
+            return Async.asyncHandler( this, handleComplete, 5000, null, handleTimeout );
+        }
+        public function errorHandler(e:ErrorEvent):void{
+            Assert.fail(e.toString());
+        }
+        public function handleTimeout(e:Event):void{
+            Assert.fail("timeout");
+        }
 
 		[Test(async)]
 		public function dependenciesFromConfig():void

			cfg.interpolationValues = {basePath: "."};
			
			var dep:Dependencies = new Dependencies(cfg);
			Async.proceedOnEvent( this, dep, Event.COMPLETE );
			Async.failOnEvent( this, dep, IOErrorEvent.IO_ERROR );
			Async.failOnEvent( this, dep, ErrorEvent.ERROR );
			dep.load();
			
			
		}
		
		[Test(async)]
		public function dependenciesFromManuallyAdding():void
		{
			var dep:Dependencies = new Dependencies();
			Async.proceedOnEvent( this, dep, Event.COMPLETE );
			Async.failOnEvent( this, dep, IOErrorEvent.IO_ERROR );
			Async.failOnEvent( this, dep, ErrorEvent.ERROR );
			dep.addItem("./dummy.swf");
			dep.addItem("./dummy.swf", {id: "dummy2"});
			dep.load();
		}
		

			cfg.interpolationValues = {basePath: "."};
			
			var dep:Dependencies = new Dependencies(cfg);;
            dep.addEventListener(Event.COMPLETE, asyncHandler, false, 0, true);
            Async.failOnEvent(this, dep, ErrorEvent.ERROR);
			dep.addItem("./dummy.swf");
			dep.addItem("./dummy.swf", {id: "dummy2"});
			dep.load();
