Add unit test to verify that sample is accurate