Tar version check fixed and added tests