added test of query weight