Improved test coverage in view package