Fix tool shed functional tests for roles and email notifications.
Fix functional tests for library templates.