stop using user factory
[generator] add test of crud