fixed training feature bugs
fix training feature bugs in recursive tests
Merge remote-tracking branch 'origin/recursiveTest'