Correct wrong constructor in test
Remove ParameterBag and use OptionsResolver