[corlib] Set test failure when test hangs
[corlib] Add SortVersion. Fixes #18770