Added unit test for list and create of affinity group.