In tests like this please use addCleanup to mop up the test resources:

```python
ctxt_id = self.dataset_management.create_parameter_context(pc_k, pc[1].dump())
seld.addCleanup(self.dataset_management.delete_parameter_context,ctxt_id)
```