Added test for view