More tar code and tests