Add unit tests to expose problem with setting null strings in tags