Mechanical testing device using spring