Add unit test for controller->sess