CRM-14109 add test for ajx fns