       $rootScope.$digest()
 
       changeInputValue element, "f"
-      expect(document.querySelector(".mac-menu-item").innerText).not.toBe "foo"
+      expect(getMenuText()).not.toBe "foo"
 
     it "should use 'label' as the key", ->
       $rootScope.source = [

      $rootScope.$digest()

      changeInputValue element, "f"
      expect(document.querySelector(".mac-menu-item").innerText).toBe "foo"

    it "should not be able to find anything", ->
      $rootScope.source = [

      changeInputValue element, "fo"
      $rootScope.$digest()

      expect(getMenuText()).toBe "foo"

    it "should use local label, value object", ->
      $rootScope.source = [
