Fix SQL syntax in test.