write tests for process_coordinator