Fix sqlite tests