Fix test name.
Use spec.
Use os.tmpdir() for cross platform compatibility.