Add some js tests for dashboard, and fix a but with with count.