Merge pull request #52 from matthayes/master

Add more sampling tests
Merge pull request #53 from matthayes/master

Add more test cases for stats UDFs