Issue #2252991 by neclimdul: PhpUnit tests for ModuleHandler.