Add test query for previously broken UNION query