fixed tests for the symfony versions lower than 2.5