Add missing UserFactory test