This requires that tests are run in a particular order, which is (a) harder to maintain and (b) not guaranteed by the test runner.  A more maintainable pattern is to make this into a helper function that gets called at the start of each test that requires settings filled in.