added index with a test