Fixed temp directory path in test