add test for view (Task3)