Add testcase for AvatarImageProvider.