Fix unit tests for the dashboard sidebar.

The tests were still accessing datagrid.counts.