Refactor and clean up compound query tests.
Refactor and clean up compound query tests.

ronyb29/peewee,mackjoner/peewee,teserak/peewee,fuzeman/peewee,coreos/peewee,bopo/peewee,jarrahwu/peewee,ghukill/peewee,coleifer/peewee,Sunzhifeng/peewee,jarrahwu/peewee,new-xiaji/peewee,lez/peewee,Dipsomaniac/peewee,zhang625272514/peewee,wenxer/peewee,Sunzhifeng/peewee,stas/peewee,bopo/peewee,jnovinger/peewee,zhang625272514/peewee,wenxer/peewee,coreos/peewee,new-xiaji/peewee,py4a/peewee,softside/peewee,bopo/peewee,zhang625272514/peewee,coleifer/peewee,Dipsomaniac/peewee,jarrahwu/peewee,coreos/peewee,fuzeman/peewee,new-xiaji/peewee,Sunzhifeng/peewee,coleifer/peewee,Dipsomaniac/peewee,jnovinger/peewee