bugfix and test for Gumbel, Laplace, Logistic and Nakagami distribution