Fixed JS tests