updated test-sampling-fns with latest alterantives