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

Add unit test for type