Learning and parsing unit-tests

main.cpp file cleaned :
- moved the XML testing in testxmlwriting.cpp
- moved the LearningProcess testing in testlearningprocess.cpp
add some unit-tests for the parsefunctions