upstream to js tests