added unit test for instancetype