       expect(_.isObject Registry.modules).toBe true
 
   describe 'Registry.registerModule', ->
+
+    # -- helpers --
+
+    modulesClone = null
+
     shellModule =
       id: 'ApertureScience.GladOS'
       title: 'Portal into GladOS\'s internal psychological state'


          # unregister all shells
          unregisterAllShells()

          assertObjectSize Registry.modules, 0

      it 'should throw error if properties are of incorrect types', ->
        unregisterAllShells()

        stringProperties = [ 'id', 'title', ]
        _.each stringProperties, (property) ->
          moduleClone = _.clone shellModule
