test cases for controller routes