fixed some tests for Symfony 2.2