This test is valid only if the initial model is a restricted version of the model, that has been estimated with maximum likelihood.
Typically, it happens when you estimate a logit model, and you use the estimated values to estimate a nested logit model.
It is then a classical likelihood ratio test, distributed as a chi square where the number of degrees of freedom is the difference between the number of parameters of the two models.
Note that Biogeme includes a tool for likelihood ratio test, documented here:
It calculates also the value of the chi2.