StdDevLeadTime test added, bugs fixes, tests improved