CRM 13234 test fix, examples update, tweaks to profile api