add test for undefined edge-case
handle undefined
2.0.2