Fixed failing tests relating to listing indexes and collection names

JAVA-1455, JAVA-1456