Add test for cohort segmentation

This test ensures we randomly assign a variation to the user based off of our
configuration settings. Not exhaustive; this could take many more tests to
cover.