Fixed validation of truncated distributions, added some tests
8 files changed