avatar factory tests