}
         component.vnfcIdentifier = '346';
         component.prepareReferenceObject();
-        expect(component.referenceDataObject['action-level']).toBe("vnfc")
+        expect(component.referenceDataObject['action-level']).toBe("vnf")
     })
 
     it("prepare reference method at vnf and vnfc level", () => {
             'port-number': '',
             'artifact-list': []
         }
-
+        component.vnfcIdentifier = '346';
         component.prepareReferenceObject();
         expect(component.referenceDataObject['action-level']).toBe("vnf")
     })
             'artifact-list': []
 
         }
-
+        component.vnfcIdentifier = '346';
         component.referenceDataObject['template-id-list'] = ['id1', 'id2']
 
         component.prepareReferenceObject();
             'user-name': '',
             'port-number': '',
             'artifact-list': []
-        }
+        };
+        component.vnfcIdentifier = '346';
         component.prepareReferenceObject();
         expect(component.referenceDataObject['action-level']).toBe("vnf")
     })
     })
 
     it('Save to appc file - should not process if action is null ', () => {
-        component.referenceDataObject.action = ""
+        component.referenceDataObject.action = "";
+        component.referenceDataObject.scope['vnf-type'] = '';
+        component.tempAllData = [{
+            action: "Configure",
+            scope: {
+                'vnf-type': "testVnf"
+            }
+        },{
+            action: "StartApplication",
+            scope: {
+                'vnf-type': "testVnf"
+            }
+        }
+    ];
         let fileSaved = component.saveToAppc();
         expect(fileSaved).toBe(undefined)
     })
     it('Save to app cfile - should not process if device protocol is null ', () => {
         component.referenceDataObject['device-protocol'] = ""
         component.referenceDataObject.action = "Configure"
+        component.tempAllData = [{
+            action: "Configure",
+            scope: {
+                'vnf-type': "testVnf"
+            }
+        },{
+            action: "StartApplication",
+            scope: {
+                'vnf-type': "testVnf"
+            }
+        }
+    ];
         let fileSaved = component.saveToAppc();
         expect(fileSaved).toBe(undefined)
     })
     })
 
     it("should set values on action change ConfigScaleOut", () => {
-        component.actionChange(null, { valid: true });
+        component.actionChange('ConfigScaleOut', { valid: true });
 
         expect(component.groupAnotationType.length).toBe(5)
     })
     
         component.fileChange(input);
       }));
-
-      it('Should test openModel function to set proper values', () => {
-         component.openModel(true, 'toShowMessage', 'title');
-         expect(component.modalComponent.isShow).toBe(true);
-         expect(component.modalComponent.message).toBe('toShowMessage');
-         expect(component.modalComponent.title).toBe('title');
-      });
 });
\ No newline at end of file