Canonical query tests