DBQuery unit-test