Issue 1459 avatar functional tests

This depends on #1512 (only the last commit is for this PR). WIP:

- [x] functional tests that mock out camera and file picker
- [ ] local test that uses the camera?