fixed tests
User model and authentication