Created a user factory

I defined a factory for users for later use in testing.