Brazil faced a test of its security preparations for the World Cup on Thursday as demonstrators aghast at the cost of the event joined protests and strikes in several major cities.