addressbook unit test for toggleAsFavorite method