Test AJAX with debug mode