Added Test Case

Added Validation for null or undefined