Fix Sqlite tests