View tests

Add some view tests.