Write test coverage for ViewCache