Added preliminary tests, and made `sjl` a global.