factored out test temp directory into base testing class