tests: fix tests broken under foreign locale after 32818b2.