Created test for resource index with data