Fix tests for Symfony2 2.1