added param,eter range validation on constructor and corrected testmethod name for trapezoidal distribution in  issue #21