Testing mechanical systems