Add test function in user.php