Is the c:\Test\ directory that you are targeting on the SQL Server itself?

xp_cmdshell targets itself even if you are running the proc from a remote server. So, if the SQL Server doesn't have c:\Test, then it will fail. The UNC path to the directory will work though.