Fixed SQLite tests