China protests a test for Xi says analyst