remove dead codes and old test generators