Started fixing dashboard config tests
Fixed dashboard config test
Started fixing tests for dashboard
Fixed dashboard view spec
Fixed Document statistic spec and JSLint