Implemented pack_tar and pack_tar unit tests; also moved testing entirely to tmp dir.