add structure assignment optional field test