add spec for cacheable query