IEE Regs. in the U.K. set out a whole range of tests for correct earthing, polarity, ring continuity, loop impedance, etc.

This guide gives a pretty good idea of what's involved: http://www.tlc-direct.co.uk/Book/8.1.1.htm