gnu-smalltalk: add test

Closes #26502.

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