adding tests

added test for Type definition api