Updated these tests so that they use the new temporary directory as opposed