wrote test for setAllContacts()