add routing for controller and add test for collection controller