write test for dashboard