Spidermonkey tests

I don't expect this to get merged in the first go, but it's a first stab. 
To fix #75.