Added "extending" hook on Module wrapping.
Added test for "extending" hook on Module wrapping.