Fix len of string in unittest