Updated test_distribution.py to the current version