The simple nuts and bolts test is (if you can pin your gear). On the ground, retract and take a long handled screw driver. Apply it to the retract actuator and listen from the other end, it may be by-passing internally, enough to work on the ground but not in flight, heat is another factor as compared to the other gear.