Fixing test files for LinkedScene

Links now pointi to the test directory as opposed to files in /tmp and modifying the testWriting() test so that it can recreate the files if necessary.