Added test for sampling from potential params