Move to temporary directory when running tests and have some variables with location of previous dir location