add tests for avatar