Fix JS tests.