Class and unit tests for dashboard graph