Js unit test fixes