update js optimizer tests