made the test compatible with Symfony 2.1.x