Added test for isUndefined function.