Adding test for DashboardController