Robert Heinlein published a short story, “Life Line”, in 1939 in which such a ‘test’ was introduced by a Dr. Pinero.
Complications ensue ...
I believe it was his first ever published story.
http://en.wikipedia.org/wiki/Life-Line