Add test coverage for get_cohorted_user_partition.
Code review feedback (to be squashed).