set the pid correctly
create and delete temp folders nessesary for tests to run