       modalElement         = $compile("<mac-modal id='test-modal' mac-modal-after-hide='afterHide()'></mac-modal>") $rootScope
       $rootScope.$digest()
 
-      modal.show "test-modal"
-      $timeout.flush()
+      expect($rootScope.afterHide).not.toHaveBeenCalled()
+
+      modal.show "test-modal"
+      $timeout.flush()
+
+      expect($rootScope.afterHide).not.toHaveBeenCalled()
+
       modal.hide()
 
       expect($rootScope.afterHide).toHaveBeenCalled()

      modalElement          = $compile("<mac-modal id='test-modal' mac-modal-before-hide='beforeHide()'></mac-modal>") $rootScope
      $rootScope.$digest()

      modal.show "test-modal"
      $timeout.flush()
      modal.hide()


      modalElement      = $compile("<mac-modal id='test-modal' mac-modal-open='opened()'></mac-modal>") $rootScope
      $rootScope.$digest()

      expect(opened).toBe false
      modal.show "test-modal"
      $timeout.flush()

