       expect($($('.jstree-clicked')[0]).parent().attr('node_value')).toBe("/value_with_label");
       expect($($('.jstree-clicked')[1]).parent().attr('node_value')).toBe("/value_with_no_label");
       expect(form.echoforms('serialize')).toMatch(/value_with_label/)
-      expect(form.echoforms('serialize')).toMatch(/value_with_no_label/)
-
-
-
+      expect(form.echoforms('serialize')).toMatch(/value_with_no_label/)
        $(this).click()
      expect($('.jstree-clicked').size()).toEqual(5)

    it "should select only selected node when cascade = false", ->
      attrs = 'ref="prov:treeReference" valueElementName="data_layer" separator="\/" cascade="false"'
      form = template.form(dom, model: model, attributes: attrs)
      $(':jstree').jstree('open_all')

    $('.echoforms-element-text').val('bar').click()
    expect(form.echoforms('serialize')).not.toMatch(/dynamicNode/)

  it "removes from output any irrelevant but required nodes", ->
    model = """
      <prov:treeReference type="tree">
        <prov:data_layer></prov:data_layer>
