set location of tmpdir to tmp, added tests for cp34849