Fix avatar-unittest