Fixed the view tests
Merge pull request #5972 from GrahamCampbell/4.2-test-views

[4.2] Fixed The View Tests