diff --git a/test/errors_test.rb b/test/errors_test.rb
index <HASH>..<HASH> 100644
--- a/test/errors_test.rb
+++ b/test/errors_test.rb
@@ -11,6 +11,7 @@ class ErrorsTest < Minitest::Test
         }
       }
     }
+    index.store valid_dog
     error = assert_raises(Searchkick::ImportError) do
       index.bulk_index [valid_dog, invalid_dog]
     end
Fix build with mongoid4/5