Working against fixing the build

Each test now writes in its own directory.