spidermonkey: add test

Closes #26798.

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