                 validation: '/.*/'
 
             expect
-                id: 0
+                id: undefined
                 component: 'inputText'
                 editable: no
                 index: 0

            $builder.registerComponent 'inputText',
                template: "<div class='form-group'></div>"
                popoverTemplate: "<div class='form-group'></div>"

        it '$builder.insertFormObject() a new form', inject ($builder) ->
            $builder.insertFormObject 'form', 0, component: 'inputText'
            expect(builderProvider.forms.form.length).toBe 1
            expect(builderProvider.formsId.form).toBe 1

        it '$builder.insertFormObject() index out of bound', inject ($builder) ->
            spyOn(builderProvider.forms.default, 'splice').and.callFake (index, length) ->

            expect
                default: []
            .toEqual $builder.forms


    # ----------------------------------------
