[ADD] added new version of misfit_i and testMisfit