add process test
refactor process-controller
add test