MDEV-406: ANALYZE $stmt: add some tests for joins