add Tests for update a struct