Add tests for ProcessManager