CBIDXT-309: updated sanity script for cb-query.

Change-Id: I9312508567be37b9c0cf9c867b9a6451bd7484f4