drop nil values on create
add spec
added more test on setting properties to nil on update and create