add case controller and test