wrote test for addContact() under CM.