fix regression optional values not set
extra unit test
bump npm version