added test cases for Extend and InstanceOf to reach 100% coverage