Fixing the states for tests to be in a temporary director