Remove side-effects from test files.