Distribution testing function added