Fix test to work with SpiderMonkey and updated V8 exception text