[#4624] Created test for fix

- Adds new test suite for ViewHelperManagerFactory, and adds test for
  specific fix from this PR.