Tests for user model