These are all good tests. Maybe add one more to QueryCompileTest to confirm you get the expected "mix of agg and non agg" error for something like this:
select salary,PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY salary DESC) from core.custom_index_value ind