Add tests for dashboard view