Fix fetch-tx-index and add native format tests.