libsodium: add test

Closes #35355.

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