test_index_hash does not use fill_index_hash() unless both encoders and decoders are configured in the build.
Tests all API functions exported from index_hash.h. Does not have a dedicated test for lzma_index_hash_end. [Minor edits were made by Lasse Collin.]