Fixed failing tests

- Issues were all to do with trailing whitespace differences between
  expected results and operational results. The trailing whitespace was
  trimmed from the expected result files, meaning they no longer matched
  the actual expectations. Provided some code to trim the expected and
  operational results on comparison.
Merge branch 'hotfix/navigation-test' into develop

Fixes failing unit tests in navigation view helpers.