Add to DBQueryTest

Also fix a space issue in ParsePinTest.