Fix unit tests caused by switch from number to string ranks.