       changeInputValue element, "fo"
       $rootScope.$digest()
 
-      expect(document.querySelector(".mac-menu-item").innerText).toBe "foo"
+      expect(getMenuText()).toBe "foo"
 
     it "should use local label, value object", ->
       $rootScope.source = [

  $sniffer         = null
  changeInputValue = null

  beforeEach module("Mac")
  beforeEach module("template/autocomplete.html")
  beforeEach module("template/menu.html")

      $rootScope.$digest()

      changeInputValue element, "f"
      expect(getMenuText()).toBe "foo"

    it "should evaulate expression on label attribute correctly", ->
      $rootScope.source = [
