base64: add test

Closes #26410.

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