add InstanceImpl test.