adding tests for dashboard view