code to test mkdtemp