trakio: add avatar() tests
trakio: simplify .avatar()
trakio: add tests
trakio: use methods when possible