Add tsd test.

Submitted by Mike Hommey.