Clean up tests, improve HadoopPlatform.getTempDir()