error in ID3ClassifierTree unittest fixed

- fixed error in ID3ClassifierTree
- added more result checks in unittest
- refactored a small part of id3train method in CID3ClassifierTree class