Fixed some js tests