fixed tests on symfony2.0