tests for view