tests for view rules