Spring tension and compression testing machine