Add test for view rendering