Updated users factory. Added tests for the instance methods in the User model