ClientAgent: Assign clients channels, and fix test