minor fix to getcampaignforelement, plus tests