Revert json.stringify . handling and ensure that the working directory
is reset in the test runner in case a test changes working directory
without reverting.