thorough testing of sampling functions