js unit tests