add unit test with more segments
Merge branch 'applypatch' into testmerge