Added retrieval of indices by query method 2 to test against new version