[API] Fixed incorrect test with unsorted values

Due to sort removed in `__extract_parts` removed in e1bfac5, the test was failing.