Tests for view