Added testing method in test_user model