spec/TypeTests.js: Updated for proper parentName.
Moved typeTests and added additional test functionality.