Add testcase for cluster query.