Make tests work with symfony2.4