reorganized testing code

now have test_view and test_scan predicate families.