Add unit test for type
Merge pull request #6 from infosia/type_spec

Add unit test for type