implemented test case for TriggePpipelineInstance function . Also added the implementation for it.