Add type-check test for new instance creation.