fix testing deprecation

https://github.com/symfony-cmf/symfony-cmf/issues/191