Added test for `tempdir` argument on `create_file`