test: Make a copy of the device tree before running a test