demo: Add test coverage for indexcodec
demo: Add test coverage for indexcodec

This should cover all cases where we don't have sufficient buffer space
for encoding or run out of input buffer when decoding.

zeux/meshoptimizer,zeux/meshoptimizer,zeux/meshoptimizer