My friend Paul Stenning in the UK built one from scratch using a little plastic enclosure mounted to a BS-1363 cord cap.

Keep in mind this is for UK plug configurations and voltages but the theory should be the same.

Follow this link:
http://www.electronic-projects.net/Electronic-Projects/projects/testplug/index.shtml