Change strategy for test settings

The defaults are reloaded everytime instead of manually restoring them in every
test.