Patch settings in test.