add unit test for homeCtrl