Machine for stress and functional testing