Add regression tests on matviews and error for incorrect relkind