Set up scratch directory for tests.