bug fix and tests added. Resolve from child-parent ierarchy mocknity, when unity containers does not contains that types