Strip whitespace from dashboard name

* Trailing, leading and multiple included whitespace characters (\w+)
  are removed as they would not be visible in HTML leading to ambiguous
  dashboard entries.
Add missing spec helper for unreliable tests