remove obsolete crate testing-infra/test-generation to simplify funciton implementation (#15354)