Fix JS tests