Fixed tests for Symfony <=2.1