add some tests of InstanceImpl class.