Hydraulic cylinder testing