add undef check
add test using undef
Merge pull request #1 from shogo82148/undef-check

Add undef check