fix user factory in spec