Add a simple test to check the view code