diff --git a/search_api_db/src/Plugin/search_api/backend/Database.php b/search_api_db/src/Plugin/search_api/backend/Database.php
index ae79152..a8b5bcd 100644
--- a/search_api_db/src/Plugin/search_api/backend/Database.php
+++ b/search_api_db/src/Plugin/search_api/backend/Database.php
@@ -637,7 +637,28 @@ class Database extends BackendPluginBase {
         $column => $index_spec,
       ),
     );
-    $this->database->schema()->addIndex($db['table'], $column, $index_spec, $table_spec);
+
+    // This is a quick fix for a core bug, so we can run the tests with SQLite
+    // until this is fixed.
+    //
+    // In SQLite, indexes and tables can't have the same name, which is
+    // the case for Search API DB. We have following situation:
+    //  - a table named search_api_db_default_index_search_api_language
+    //  - a table named search_api_db_default_index
+    //
+    // The last table has an index on the search_api_language column,
+    // which results in an index with the same as the first table, which
+    // conflicts in SQLite.
+    //
+    // The core issue addressing this (https://www.drupal.org/node/1008128) was
+    // closed as it fixed the PostgresSQL part. The SQLite fix is added in
+    // https://www.drupal.org/node/2625664
+    // We prevent this by adding an extra underscore (which is also the proposed
+    // solution in the original core issue).
+    //
+    // @todo: Remove when https://www.drupal.org/node/2625664 lands, see
+    // https://www.drupal.org/node/2625722 for a patch that implements this.
+    $this->database->schema()->addIndex($db['table'], '_' . $column, $index_spec, $table_spec);
 
     if ($new_table) {
       // Add a covering index for fields with multiple values.
diff --git a/tests/src/Unit/Plugin/Processor/HtmlFilterTest.php b/tests/src/Unit/Plugin/Processor/HtmlFilterTest.php
index 22a8f5f..f08ff89 100644
--- a/tests/src/Unit/Plugin/Processor/HtmlFilterTest.php
+++ b/tests/src/Unit/Plugin/Processor/HtmlFilterTest.php
@@ -44,7 +44,8 @@ class HtmlFilterTest extends UnitTestCase {
    */
   public function testTitleConfiguration($passed_value, $expected_value, $title_config) {
     $this->processor->setConfiguration(array('tags' => array(), 'title' => $title_config, 'alt' => FALSE));
-    $this->invokeMethod('processFieldValue', array(&$passed_value, 'text'));
+    $type = 'text';
+    $this->invokeMethod('processFieldValue', array(&$passed_value, &$type));
     $this->assertEquals($expected_value, $passed_value);
 
   }
@@ -81,7 +82,8 @@ class HtmlFilterTest extends UnitTestCase {
    */
   public function testAltConfiguration($passed_value, $expected_value, $alt_config) {
     $this->processor->setConfiguration(array('tags' => array('img' => '2'), 'title' => FALSE, 'alt' => $alt_config));
-    $this->invokeMethod('processFieldValue', array(&$passed_value, 'text'));
+    $type = 'text';
+    $this->invokeMethod('processFieldValue', array(&$passed_value, &$type));
     $this->assertEquals($expected_value, $passed_value);
   }
 
@@ -117,7 +119,8 @@ class HtmlFilterTest extends UnitTestCase {
    */
   public function testTagConfiguration($passed_value, $expected_value, array $tags_config) {
     $this->processor->setConfiguration(array('tags' => $tags_config, 'title' => TRUE, 'alt' => TRUE));
-    $this->invokeMethod('processFieldValue', array(&$passed_value, 'text'));
+    $type = 'text';
+    $this->invokeMethod('processFieldValue', array(&$passed_value, &$type));
     $this->assertEquals($expected_value, $passed_value);
   }
 
@@ -181,7 +184,8 @@ class HtmlFilterTest extends UnitTestCase {
 <span>This is hidden</span>';
     $expected_value = preg_replace('/\s+/', ' ', strip_tags($passed_value));
 
-    $this->invokeMethod('processFieldValue', array(&$passed_value, 'string'));
+    $type = 'string';
+    $this->invokeMethod('processFieldValue', array(&$passed_value, &$type));
     $this->assertEquals($expected_value, $passed_value);
   }
 
