Add test script for `type` library.