tests: fixed an error in script call
util_index: moved common functions here

out of uc2otus and index_to_seq_table
test: refactored index tests