Add 3 functions in Entity.js in order to generate setters functions : (generateSetterFunction, generateAddItemToListFunction, generateAddItemsToListFunction) with the checking of type
Add the tests linked to the functions
Add an non-undefined eventID and recordTime in EPCIS Document examples
Use the functions in almost all the setters in Event.js
It would also be great to test the directly the each setters with a good case and a wrong case to be sure that everything is ok. You can do that in the ObjectEvent test file.