[WIP] Added GenerateAdminCommandTest. Fixed bug: The "type" option does not exist.