ML test for supporting legacy models

New patches allow to load files with ml models in old format. Corresponding test and data has been added.
(Itseez/opencv_extra#232 contains testdata)