Add compund query test to basic operations test