 		public function dependenciesEmpty():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.addEventListener(Event.COMPLETE, asyncHandler, false, 0, true);
+            Async.failOnEvent(this, dep, ErrorEvent.ERROR);
 			dep.load();
-		}
-		
-		public function onDepsLoadComplete(e:Event):void
-		{
-			Assert.assertEquals(1,1);
 		}
 
 	}

			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.addItem("./dummy.swf");
			dep.addItem("./dummy.swf", {id: "dummy2"});
			dep.load();

	
	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
