Fixing some broken tests in Sqlite