Refactored and add tests to NSNullToNil()