added a couple of testcases for views to address DRILL-1049 and DRILL-1015