add isUndefined unit test