Fix REPACK step in TSG tests