Tests for user.py