Codec for generating test indexes in the Appending format