Its standard practice to function check gear operation on the ground after a gear main component change,the aircraft is either on jacks or jacks and wheel pit.As for worrying about retraction whilst standing on main gear,that is why you install "the pins" in the downlock links and sign for it in the Tech Log.Should someone select "gear up",the pins will not allow the downlock links to fold.