AVRO-1150. Java: Fix tests to create all temporary files in target directories. Contributed by Gabriel Reid.