[AS,KS]{issue}Test fix, unique contacts, fixed memory leaks