Testing the view code