                 hinoki.inject container, (a) ->
             catch error
                 test.equals error.message, "circular dependency a <- b <- c <- d <- e <- f <- a"
+                test.deepEqual container.scope, {}
                 test.done()
 
         'one async dependency with success': (test) ->


            hinoki.inject container, (a) ->
                test.equals a, 5
                test.done()

        'exception in factory': (test) ->


            hinoki.inject container, (a) ->
                test.equals a, 5
                test.deepEqual container.scope,
                    a: 5
                test.done()

        'one async dependency with error': (test) ->
            container =
                factories:
                    a: ->
                        deferred = q.defer()
                        q.nextTick ->
                            deferred.reject 5
                        return deferred.promise

            q.onerror = (err) ->
                test.equals err.message, "error resolving promise returned from factory 'a'"
                test.deepEqual container.scope, {}
                test.done()

            hinoki.inject container, (a) ->

