added test for error handling in loadContacts