BUG: fix non-running tests and two test errors for stats.distributions