diff --git a/autotests/personsmodeltest.cpp b/autotests/personsmodeltest.cpp
index 3e5b9a5..ee2123b 100644
--- a/autotests/personsmodeltest.cpp
+++ b/autotests/personsmodeltest.cpp
@@ -119,6 +119,7 @@ void PersonsModelTest::gettersTests()
 {
     // Find the index for "kpeople://1" using the QAIModel method
     QModelIndexList indexList = m_model->match(m_model->index(0,0,QModelIndex()), KPeople::PersonsModel::PersonUriRole, QVariant(QStringLiteral("kpeople://1")), 1);
+    QCOMPARE(indexList.isEmpty(), false);
     QModelIndex personIndex = indexList.first();
 
     // Now get the index using our method