Fix tests for Symfony 2.2