[lib] Add tests for caching behavior of getAvatarURIForAddress
Summary: Depends on D7043
Test Plan:
- Test plan described here, implemented via unit tests in this and surrounding diffs
- Tested SVGs in React Native as noted here
Reviewers: atul
Reviewed By: atul
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D7044