[TestExamples] Fixed some bugs.