Testing Pyramid app - Changing settings for function under test