improving distribution tests