Fix broken view unit test