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

Add unit test for type