test-lib: allow setting the index format version