adds more unit tests and fixes a uniqueness bug in action.social.variety.