add an assert and moving test file in the good directory
forget CMakeLists changes
Merge pull request #670 from kerautret/StatisticEdit

add an assert and moving test file in the good directory