Try and connect it to the internet? You need to be more specific. Will you be testing it at your home, or where you will be buying it? Will there be multiple computers? If so, you can network the two as a test.
I don't follow... How can you suspect the ethernet port is faulty if you have yet to buy the computer?
Don't the G5s have two ethernet ports? If you suspect that only one is faulty, you could connect the two using an ethernet cable and ping from one to the other.