Add unit tests: Handle null & empty for string fields.