JS test fixes