TEST CASE Postgresql Indexing/Query