Add/revise project controller and test code.