move from old source code. add ObjectTypeInspector test case