Fixed a query error in testdata.sql