Write test files to temp dir