Fixing the views tests as well to verify the code