tests: make merge_test_index() assertive

Don't return whether it was successful but assert what it wants to see
so we get useful error messages.