Fixed memory leak in GaussianLikelihood and StudentsTLikelihood unit tests