fix JS tests