added factory and user model test