tests: create the index inside the parse_str function