Initialize the structure with a loop, and set all elements to 0x00, that way you can check quickly if a string was set.
Another option would be to add an additional field to the test struct, to indicate wether the struct has no allocated value, is empty, or has a value…