Some tests for the Sample.