XAMPPのApacheを止めてそのファイルがあるディレクトリで

$ php -S localhost:8080

とでもしてビルトインサーバを起動して http://localhost:8080/test.html にアクセスした方が早い