Added User model tests and fixed for travis tests