Add test case addInstanceFieldTest and fix an instance field add problem.