Added specs for setting module names.
Added kachick's fix for Module names. Closes #2600. Closes #2598.