Fix unit tests for the dashboard sidebar.

The tests were still accessing datagrid.counts.
Merge branch 'release-1.7.x'