added more test data
added some checks for duplicate type definitions