More test fixes for SQLite