nettle: modernize
nettle: add test

Closes #35314.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>