Write test case for nil, test failed
Add a validation for nil. All test passed