Increased test coverage for views to 100%