Fix view tests

The tests were broken.