Test IsValid property on QFreeText