Fix view unit test