Added tests for PerProcessInstanceRuntimeManager