added visitor testing

Assigning ids in your factory is bad practice.