modified tests to handle the ajax calls to update favorites/unfavorites.