add unit test for DashboardsCtrl