Add testcase for eager query.