updated js unit tests