Added more js unit tests