update js unit tests