Test get lowest pred index and get highest pred index.