Fixed unit test for Symfony 2.6