user factory created and tested