Fix orbisgis core unit test, redo toc legend wizard