modify some test methods of InstanceImpl class.