Started adding unit tests for dashboard