add test case for refresh_contacts