Can you tell me how is a genetic test done on a child?

Varies. Some can be done from a swab of the inside of the mouth.Some are done from blood cells. Some may require a skin or muscle biopsy, depending on the type of issue being tested.