Automated collection creation, index creation and generating test data