redirect add unit test for controller.