 			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.addEventListener(Event.COMPLETE, asyncHandler);
+            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.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();
+		}
+		
+		[Test(async)]
+		public function dependenciesFailed():void
+		{
+			var dep:Dependencies = new Dependencies();
+            dep.addEventListener(ErrorEvent.ERROR, asyncHandler, false, 0, true);
+            Async.failOnEvent(this, dep, Event.COMPLETE);
+			dep.addItem("./dummye.swf");
 			dep.load();
 		}
 		

	
	public class DependenciesTest
	{

		[Test(async)]
		public function dependenciesFromConfig():void

		public function dependenciesEmpty():void
		{
			var dep:Dependencies = new Dependencies();
            dep.addEventListener(Event.COMPLETE, asyncHandler, false, 0, true);
            Async.failOnEvent(this, dep, ErrorEvent.ERROR);
			dep.load();
		}

	}
