Fixed doc strings.
Added tests for generating of the MOM.