Add test for getAllContacts handler