Fix test for server versions < 2.6

JAVA-1215