Changes for MDL-31356

Added test functions for the following functionality additions:

Allow nested categories when creating courses.
Allow updates to course Full Name, Short Name, and Description.
Allow setting authentication type for users.
Allow updates to users.