[scala] [runtime] Add extra tests for sorting of case classes