scala: add a test

Closes #27241.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
chicken: add a test

Closes #27242.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>