tests: port remaining bits of test-parseindex2 to unittest asserts

Authored by durin42.