updated js tests