Add test coverage for explicit nil case