#1, #3: Added docstrings to _create_package_hierarchy().
#1, #9: Added unittests of _create_package_hierarchy().