A quick test shows that window text is not set to "\uffff..." in this case, but is instead empty. Not sure if this applies to user32 variant as well, but it's worth fixing.
Also please remove whitespace-only lines in tests changes, and add a space between "if" and opening parentheses.