Make tests compatible with symfony 2.3