fix test for temp pathnames of arbitrary length