Removed some direct settings manipulations in tests; refs #21230.