index: More docs for get_index_metadata helper function
tests: Docs for test_index_metadata added