You need to be administrator on a site and a hub.
The site need to be registered (MDLQA-125) and some courses need to be published (MDLQA-127).
1. Login as site administrator and access registration page
2. Select unregister from a hub.
3. On the unregistration page, select "all courses must be unregistered", and unregister.
4. The registration page should be displayed and the hub should not appear in the 'Registered on' list.
5. Check that the courses that was published (MDLQA-127) are not listed as published anymore on their publish page
6. Login as hub administrator and access manage sites page
7. Check that the site is not listed
8. Go to manage courses page and check that the site courses are not listed.