diff --git a/test/lib/Elastica/Test/StatusTest.php b/test/lib/Elastica/Test/StatusTest.php
index <HASH>..<HASH> 100644
--- a/test/lib/Elastica/Test/StatusTest.php
+++ b/test/lib/Elastica/Test/StatusTest.php
@@ -36,12 +36,13 @@ class StatusTest extends BaseTest
         $index = $client->getIndex($indexName);
         $index->create(array(), true);
         $index = $this->_createIndex();
+		$index->refresh();
 
         $status = new Status($index->getClient());
         $names = $status->getIndexNames();
 
         $this->assertInternalType('array', $names);
-        $this->assertTrue(in_array($index->getName(), $names));
+        $this->assertContains($index->getName(), $names);
 
         foreach ($names as $name) {
             $this->assertInternalType('string', $name);
Add $index->refresh() to test to make sure, index always is ready