code: function compile(template) {
      el = $compile(template)(pageScope);
      root = $rootElement.append(el)[0];
      body = $document[0].body;
      body.appendChild(root);
  
      pageScope.$apply();
  
      return el;
    }
docs: /*
  Test Helper Functions