 
             container2 =
                 factories:
+                    b: (a) ->
+                        deferred = q.defer()
+                        q.nextTick -> deferred.resolve a + 1
+                        return deferred.promise
+
+            container3 =
+                factories:
                     a: ->
                         deferred = q.defer()
                         q.nextTick -> deferred.resolve 1
                         return deferred.promise
-                    b: (a) ->
-                        deferred = q.defer()
-                        q.nextTick -> deferred.resolve a + 1
-                        return deferred.promise
-
-            hinoki.inject [container1, container2], (a, b, c) ->
+
+            hinoki.inject [container1, container2, container3], (a, b, c) ->
                 test.equals a, 1
                 test.equals b, 2
                 test.equals c, 4
                 test.deepEqual container1.scope,
                     c: 4
                 test.deepEqual container2.scope,
-                    a: 1
-                    b: 2
-                test.done()
+                    b: 2
+                test.deepEqual container3.scope,
+                    a: 1
+                test.done()


            test.done()

    'inject':

        'missing factory': (test) ->
            container = {}

                    c: 4
                test.done()

        '1 factory and 2 seeds': (test) ->
            container =
                scope:
                    a: 1
