Adapt tests to the new temporary directory layout